package common.model.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import common.model.po.base.BasePo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author 米泽鹏
 * @since 2023-11-28 下午 06:19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("g_creature")
@ApiModel(value = "GCreature对象", description = "")
public class GCreature extends BasePo<GCreature> {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "生物名称")
	private String creatureName;

	@ApiModelProperty(value = "耐久度")
	private Integer durability;

	@ApiModelProperty(value = "伤害")
	@TableField(typeHandler = JacksonTypeHandler.class)
	private List<Integer> damage;

	@ApiModelProperty(value = "最大伤害")
	private Integer maxDamage;

	@ApiModelProperty(value = "生物描述")
	private String description;

	@ApiModelProperty(value = "同级中的排序")
	private Integer sort;

	@ApiModelProperty(value = "类别id")
	private Long classificationId;

	@ApiModelProperty(value = "图片地址")
	private String image;

	@Override
	public Serializable pkVal() {
		return super.getId();
	}

}
